//staticfile.js
let static = {
    method: 'GET',
    path: '/staticFile',
    handler: function(request, reply) {
        return reply.file('./public/static.html');
    }
};

let view = {
    method: 'GET',
    path: '/view',
    handler: function(request, reply) {
        return reply.view('login', { title: 'My home page', content: 'Hello Hapi!!!' });
    }
};

module.exports = static;